package com.ms.p2p.utils;


import com.ms.common.utils.SpringContextHolder;
import com.ms.p2p.entity.system.Dictionary;
import com.ms.p2p.service.DictionaryService;

import java.util.List;


public class DictionaryUtils {

    private static DictionaryService dictService = SpringContextHolder.getBean(DictionaryService.class);
    public static String getValue(String nid, String key) {
        return dictService.getValue(nid, key);
    }
    public static List<Dictionary> getDictListNid(String nid) {
        return dictService.getDictListNid(nid);
    }


}